﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace CommonSite.Common
{
    public class ControllerHelper
    {
        public static void SetBackUrl(Controller controller)
        {
            controller.ViewBag.Back = controller.Request.UrlReferrer != null;
            controller.ViewBag.BackUrl = controller.Request.UrlReferrer.PathAndQuery;
        }
    }
}